#! /bin/sh
for ((i=1; i<=54000; i++))
do
  date  >> /opt/app/MgtTool/ps.log;
  ps -eo state,pid,cmd | grep "^D"  >> /opt/app/MgtTool/ps.log;
  echo "-----------------------------" >> /opt/app/MgtTool/ps.log
  sleep 1
done

